package com.leo.blog.service;

import java.util.List;

import com.leo.blog.dto.ResourcesExecution;
import com.leo.blog.entity.Resources;

public interface ResourcesService {
	/**
	 * 添加资源信息
	 */
	ResourcesExecution addResources(String name, Resources resources);
	
	/**
	 * 更新资源信息
	 */
	ResourcesExecution updateResources(String name, Resources resources);
	
	/**
	 * 删除资源信息(id)
	 */
	ResourcesExecution deleteResources(String name, int resourcesId);
	
	/**
	 * 根据id查询资源信息
	 */
	ResourcesExecution getResourcesById(int resourcesId);
	
	/**
	 * 分页查询
	 */
	ResourcesExecution getResourcesList(Resources resourcesCondition, int pageIndex, int pageSize);
	
	/**
 	 *  获取资源信息，根据状态分组查询
 	 * @return
 	 */
	ResourcesExecution getResourcesListByStatus();
}
